<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
	xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
	xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
	xmlns:fox="http://www.camunda.com/fox"
	targetNamespace="Examples">

	<process id="asyncUserTaskFailedJobRetryTimeCycle" isExecutable="true">

		<startEvent id="theStart" />
		<sequenceFlow id="flow1" sourceRef="theStart" targetRef="task" />
        
        <userTask id="task" name="Task rigged with timer" camunda:async="true">
        	<extensionElements>
        		<fox:failedJobRetryTimeCycle>R5/PT5M</fox:failedJobRetryTimeCycle>
        	</extensionElements>
        </userTask>
		<sequenceFlow id="flow2" sourceRef="task" targetRef="theEnd" />
		
		<endEvent id="theEnd" />

	</process>
	
	<process id="notAsyncUserTaskFailedJobRetryTimeCycle" isExecutable="true">

		<startEvent id="start" />
		<sequenceFlow id="flowTransition1" sourceRef="start" targetRef="notAsyncTask" />
        
        <userTask id="notAsyncTask" name="Task rigged with timer" />
		<sequenceFlow id="flowTransition2" sourceRef="notAsyncTask" targetRef="end" />
		
		<endEvent id="end" />

	</process>
	
		<process id="asyncUserTaskButWithoutFailedJobRetryTimeCycle" isExecutable="true">

		<startEvent id="start1" />
		<sequenceFlow id="flowTransition11" sourceRef="start1" targetRef="asyncTaskWithoutFailedJobRetryTimeCycle" />
        
        <userTask id="asyncTaskWithoutFailedJobRetryTimeCycle" name="Task rigged with timer" camunda:async="true" />
		<sequenceFlow id="flowTransition21" sourceRef="asyncTaskWithoutFailedJobRetryTimeCycle" targetRef="end1" />
		
		<endEvent id="end1" />

	</process>

</definitions>